//
//  UIImage+MXConvert.h
//  XinAnDaApp
//
//  Created by 崔国冠 on 2017/8/22.
//  Copyright © 2017年 崔国冠. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@interface UIImage (MXConvert)

/**
 *  描述: CMSampleBufferRef转NSImage
 *
 *  @param sampleBuffer 视频帧数据
 *
 *  @return UIImage 转换的图片对象
 */
+ (UIImage *)imageFromSampleBuffer:(CMSampleBufferRef)sampleBuffer;

@end
